<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
            width: 600px;
			height: 300px;
			background-color: red;
            /* 块级盒子水平居中 */
            margin: 60px auto;
            /*盒子里面的文字 行内元素 、行内块居中对齐水平居中*/
            text-align: center;
        }
    
    </style>
</head>
<body>
    <div>xxxx</div>
</body>
</html>